<%@ include file="header.jsp" %>
<%@page import="com.semp.jadoma.admin.form.DogModifyForm"%>

<div class="formdiv">
	<div class="formdiv_title">
		<bean:message key="page.dog.modify.search.title"/>
	</div>

<html:form action="/dog/modify">
	<html:hidden property="step" value="<%=String.valueOf(DogModifyForm.STEP_SEARCH)%>"/>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			<bean:message key="dog.infos.name"/> :
		</p>
		<p class="formdiv_field">
			<html:text property="searchName" />
		</p>
	</div>
	
	<div class="formdiv_line">
		<p class="formdiv_label">
			&nbsp;
		</p>
		<p class="formdiv_field">
			<html:submit>
				<bean:message key="page.dog.modify.search.submit" />
			</html:submit>
			</html:form>
		</p>
	</div>
</html:form>

	<div class="formdiv_footer"/>
	
</div>
		
<logic:equal name="dogModifyForm" property="step" value="<%=String.valueOf(DogModifyForm.STEP_SEARCH)%>">
	<br/>
	<br/>
	<logic:notPresent scope="request" name="<%=Session.LIST_BEAN_DOG%>">
		<bean:message key="page.dog.modify.search.notfound"/>
	</logic:notPresent>
	
	<logic:present scope="request" name="<%=Session.LIST_BEAN_DOG%>">
		<html:form action="/dog/modify">			
			<html:hidden property="step" value="<%=String.valueOf(DogModifyForm.STEP_DISPLAY_MODIF)%>"/>
			<logic:iterate id="dogBean" name="<%=Session.LIST_BEAN_DOG%>" type="com.semp.jadoma.core.model.IDog">
				<html:radio property="id" idName="dogBean" value="id"></html:radio><bean:write name="dogBean" property="name"/><br/>
			</logic:iterate>
			<br/>
			<html:submit titleKey="page.dog.modify.search.modify"><bean:message key="page.dog.modify.search.modify"/></html:submit>
		</html:form>
	</logic:present>
</logic:equal>

</center>

<%@ include file="footer.jsp" %>